/* Ejercicioo 3.47
   ejer3_47.c */
#include <stdio.h>

/* funcion main, el programa inicia aca */
int main( void )
{
    int population, incrementRate, year;

    printf( "Enter the actual population: " );
    scanf( "%d", &population );
    printf( "Enter the annual world population growth rate: " );
    scanf( "%d", &incrementRate );

    year = 1;
    while ( year <= 5 ) {
        population += population * incrementRate / 100;
        printf( "%dst year: %d people\n", year, population );
        ++year;
    }
	return 0;
} /* fin de la funcion main */
